home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
TPTC17GS.LZH
/
T2C.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-03-28
|
494b
|
26 lines
echo off
rem batch driver to translate pascal to c with include file post-processing
rem insert your desired "default options" here
:set tptc=-l -wj: -sc:\inc -i
rem check for proper command-line options
if .%2 == . goto usage
if exist %1 goto usage
tptc %1 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto exit
uninc %1.c %2
goto exit
:usage
echo.
echo usage: t2c SOURCEFILE DESTDIR
echo ex: t2c tptc \dest
echo (do not specify input file extension)
:exit
echo.